# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-flickrapi
pkgver=2.4.0
pkgrel=4
pkgdesc='The official Python interface to the Flickr API.'
arch=('any')
url='http://stuvel.eu/flickrapi'
license=('Python')
depends=('python2-six' 'python2-requests-oauthlib' 'python2-requests-toolbelt')
makedepends=('python2-docutils' 'python2-setuptools')
source=("https://pypi.io/packages/source/f/flickrapi/flickrapi-$pkgver.tar.gz")
sha512sums=('8c14a00850fa0d70d5f0f0e856425b09cd25746f8ed3aaf34f59e0f8e8567ebb814893ddc3c768500207ec1fd437179ccae24d39a167f116020d4cb97d4cce1d')

build() {
  cd "flickrapi-$pkgver"

  python2 setup.py build
}

package() {
  cd "flickrapi-$pkgver"

  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build

  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

